package com.abing.strategy.controller;

import com.abing.strategy.context.PayContextStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 */
@RestController
public class PayController {
    @Autowired
    private PayContextStrategy payContextStrategy;

    //http://127.0.0.1:8080/toPayHtml?payCode=01
    @RequestMapping("/toPayHtml")
    public String toPayHtml(String payCode) {
        return  payContextStrategy.toPayHtml(payCode);
    }
}
